<template>
    <div>
        <el-row>
            <div class="zhye" >*账户余额*</div>
        </el-row>

        <div class="yu_e">
            账户余额：<span>{{ye}}</span>元
            <!-- <el-button text @click="open" class="cz">充值</el-button> -->
            <!-- <Cz></Cz> -->
            <input type="button" class="cz" @click="fn_cz" value="充值100">
        </div>
        <el-tabs type="border-card">
            <el-tab-pane label="全部">
                <Assets_all></Assets_all>
            </el-tab-pane>
            <el-tab-pane label="支出明细">
                <Assets_out></Assets_out>
            </el-tab-pane>
            <el-tab-pane label="退款明细">
                <Assets_refund></Assets_refund>
            </el-tab-pane>
        </el-tabs>
    </div>
</template>

<script setup>
import Assets_all from "../assets_components/Assets_all.vue"
import Assets_out from "../assets_components/Assets_out.vue"
import Assets_refund from "../assets_components/Assets_refund.vue"
// import Cz from "../assets_components/Cz.vue"
// import { ElMessage, ElMessageBox } from 'element-plus'
import { ref,watch } from "vue"
let ye = ref("ye");
ye=0
const fn_cz = async() => {
    ye =parseInt( ye) + 100
    console.log(ye, 1111)
    return ye
}
let mdata=new FormData();


// const open = () => {

//     ElMessageBox.prompt('请输入你要充值的数额', '充值：', {
//         confirmButtonText: '确认',
//         cancelButtonText: '取消',
//         inputPattern:
//             /^[1-9]\d*$/,
//         inputErrorMessage: 'Invalid Email',
//     })
//         .then(({ value }) => {
//             ElMessage({
//                 type: 'success',
//                 message: `您已成功充值:${value}元`,
//             })
//             let cz = () => {
//                 ye = parseInt(ye.value) + parseInt(`${value}`)
//                 console.log(111, ye)
//             }
//             cz()
//         })
//         .catch(() => {
//             ElMessage({
//                 type: 'info',
//                 message: '已取消充值',
//             })
//         })
// }


</script>

<style scoped lang="scss">
.el-row {
    width: 950px;
    margin-left: 30px;
    height: 50px;
    margin-top: 20px;
}

.el-row[data-v-7baa686d] {
    width: 950px;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 18px;
    border-bottom: 2px solid lightblue;

    .zhye {
        width: 150px;
        height: 40px;
        line-height: 40px;
        font-size: 18px;
        font-family: '宋体';
        color: rgb(145, 144, 144);
        // background-color: cornflowerblue;
    }
}

//账户余额
.yu_e {
    width: 950px;
    height: 80px;
    margin-left: 30px;
    margin-top: 20px;
    font-size: 16px;
    font-family: '宋体';
    line-height: 80px;
    border-radius: 10px;
    background-color: rgb(231, 246, 252);
    // color: rgb(145, 144, 144);

    span {
        font-size: 24px;
        color: rgb(252, 177, 63);
    }

    .cz {
        width: 100px;
        height: 40px;
        color: black;
        background-color: rgb(252, 177, 63);
        border: 2px solid rgb(252, 177, 63);
        border-radius: 10px;
        margin-left: 720px;
        font-size: 18px;

        &:hover {
            background-color: rgb(245, 196, 122);
        }
    }
}

//标签页
.el-tabs[data-v-7baa686d] {
    margin-top: 20px;
    margin-left: 30px;

}

::v-deep .el-tabs__nav-prev {
    display: none;
}

::v-deep .el-tabs__nav-next {
    display: none;
}

::v-deep .is-scrollable {
    padding: 0;
}

::v-deep .el-tabs__item {
    width: 120px;
    margin: 0;
    padding: 0;
    text-align: center;
}

//穿透卡片标题
::v-deep .el-tabs--border-card>.el-tabs__header .el-tabs__item.is-active {
    color: black;
    padding: 0;
}

::v-deep .el-tabs--border-card>.el-tabs__header .el-tabs__item+.el-tabs__item {
    padding: 0;
}

//第一个卡片标题
::v-deep #tab-0 {
    padding: 0;
}
</style>